package com.ten.member.contorller;

import com.ten.common.core.entity.TbMember;
import com.ten.common.core.vo.Result;
import com.ten.member.service.TbMemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：Q大侠
 * @date ：Created in 2022/12/14 18:35
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/sso/admin")
@Api(tags = "前端web登陆验证")
public class QianLoginController {
    @Autowired
    private TbMemberService tbMemberService;

    @PostMapping("/qianLogin/{mobile}/{qianPassword}")
    @ApiOperation(value = "会员登陆")
    @ApiImplicitParams({@ApiImplicitParam(name = "mobile",value = "登陆手机号"),
            @ApiImplicitParam(name = "qianPassword",value = "密码")})
    public Result qianLogin(@PathVariable String mobile,
                            @PathVariable String qianPassword){
        return tbMemberService.qianLogin(mobile,qianPassword);
    }
}

